/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ticketmaster.businesslogic;

import ticketmaster.dao.DAOFactory;
import ticketmaster.dao.TicketRateDAO;
import ticketmaster.dataobject.TicketRate;

/**
 *
 * @author Varadha
 */
public class TicketRateController
{

    public boolean addTicketRate(TicketRate trate)
    {
        TicketRateDAO trateDAO = DAOFactory.getInstance().getTicketRateDAO();

        if (trateDAO.insertTicketRate(trate) == 0)
        {
            return false;
        }
        else
        {
            return true;
        }
    }

}
